# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : grpc_client.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/8/10 21:12
# @Copyright: 北京码同学
import grpc

from common.file_load import load_yaml_file
from paths_manager import grpc_yaml


class GrpcChannel:

    channel = None
    def __init__(self):
        self.host = load_yaml_file(grpc_yaml)['host']
        GrpcChannel.channel = grpc.insecure_channel(self.host)